package com.coolw.design.pattern.behavior.state;

/**
 * 具体状态A
 *
 * @author coolw
 * @date 2025/4/22 14:45
 */
public class ConcreteStateA extends State {

    @Override
    public void handle(StateContext context) {
        // 状态A处理
        System.out.println("状态A已处理完成......");

        // 设置下一个状态B
        context.setState(new ConcreteStateB());
    }
}
